/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ytmc.videoManager;

import com.google.gdata.util.ServiceException;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import ytmc.Controller;
import ytmc.View;

/**
 *
 * @author Tadeusz
 */
public class VideoManagerController implements Controller
{
    private VideoManagerModel model;
    private VideoManagerView view;

    public VideoManagerController()
    {
        this.model = new VideoManagerModel();
        this.view = new VideoManagerView( this, model );
    }
    
    public void refresh() throws InterruptedException, InvocationTargetException
    {
        model.refresh();
    }
    
    public void remove(int row) throws IOException, ServiceException
    {    
        model.remove(row);
    }
    
    
    @Override
    public View getView()
    {
        return view;
    }
}
